package com.example.yiqiuser.service;


import com.example.yiqiuser.entity.Visitor;
import com.example.yiqiuser.util.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author: Jyc
 * @date: 2023/3/30
 * @interfacename: VisitorService
 * @time: 20:30
 * @description:
 */
public interface VisitorService {

    /**
     * 根据手机号密码查询用户
     * @param visitor
     * @return
     */
    Visitor queryByPhoneNumAndPassword(Visitor visitor);



    /**
     * 根据用户名密码查询用户
     * @param visitor
     * @return
     */
    Visitor queryByAccountAndPassword(Visitor visitor);


    /**
     * 带参查询
     * @param page
     * @return
     */
    PageInfo queryByParam(Page<Visitor> page);

    /**
     * 增
     * @param visitor
     * @return
     */
    int adds(Visitor visitor);

    /**
     * 删
     * @param id
     * @return
     */
    int deleteById(int id);

    /**
     * 改
     * @param visitor
     * @return
     */
    int update(Visitor visitor);
}
